﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _1
{
    // 自定义异常类，表示取到了坏钞票
    public class BadCashException : Exception
    {
        public BadCashException() : base("检测到坏钞票！")
        {
        }

        public BadCashException(string message) : base(message)
        {
        }
    }
}
